package top.saodisheng.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import top.saodisheng.myrule.SaodishengRule;


/**
 * Description:
 * 主启动类
 * @author 扫地生_saodisheng
 */
//Ribbon和Eureka整合以后，客户端可以直接调用，而不同关心ip地址和端口号
@SpringBootApplication
@EnableEurekaClient //开启Eureka 客户端
@RibbonClient(name = "SPRINGCLOUD-PRIVIDER-DEPT", configuration = SaodishengRule.class)
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class, args);
    }
}
